package com.aperos.webservice;
import javax.jdo.annotations.*;

import com.google.appengine.api.datastore.Key;


@PersistenceCapable (identityType = IdentityType.APPLICATION)
public class BarError {
	
	@PrimaryKey
	@Persistent (valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
    private Key barKey;
	@Persistent
	private int refBarError;
	@Persistent
	private String barErrorMessage;
	@Persistent
	private String barErrorComment;
	@Persistent
	private String barErrorState;
	
	
	public BarError(Key barKey, int refBarError, String barErrorMessage, String barErrorComment, String barErrorState) {
		this.barKey = barKey;
		this.refBarError = refBarError;
		this.barErrorMessage = barErrorMessage;
		this.barErrorComment = barErrorComment;
		this.barErrorState = barErrorState;
	}


	public Key getKey() {
		return key;
	}


	public void setKey(Key key) {
		this.key = key;
	}



	public Key getBarKey() {
		return barKey;
	}


	public void setBarKey(Key barKey) {
		this.barKey = barKey;
	}


	public int getRefBarError() {
		return refBarError;
	}


	public void setRefBarError(int refBarError) {
		this.refBarError = refBarError;
	}


	public String getBarErrorMessage() {
		return barErrorMessage;
	}


	public void setBarErrorMessage(String barErrorMessage) {
		this.barErrorMessage = barErrorMessage;
	}


	public String getBarErrorComment() {
		return barErrorComment;
	}

	public void setBarErrorComment(String barErrorComment) {
		this.barErrorComment = barErrorComment;
	}

	public String getBarErrorState() {
		return barErrorState;
	}


	public void setBarErrorState(String barErrorState) {
		this.barErrorState = barErrorState;
	}
	
	
}
	